package com.indeep.indeepmasterstation.controller;

import com.indeep.common.result.JsonResult;
import com.indeep.common.result.StatusCode;
import com.indeep.indeepmasterstation.service.ILoginService;
import com.indeep.indeepmasterstation.vo.CodeDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class LoginController {
    @Autowired
    ILoginService loginService;
    @RequestMapping("/jiguang/sendCode")
    public JsonResult sendCode(@RequestBody CodeDTO codeDto) {
       return loginService.sendCode(codeDto.getPhoneNumber());

    }
}
